﻿using Koala.Pro.CodeGenerator.UI.DatabaseModel.Schema;
using Koala.Pro.CodeGenerator.UI.Models;

namespace Koala.Pro.CodeGenerator.UI.Common.Adapter
{
    public abstract class BaseAdapter : AbstractAdapter
    {
        protected ProjectData setting = new ProjectData();

        public BaseAdapter(DatabaseInfo database, List<string> selectedTableNames, string templateFile)
            : base(database, selectedTableNames, templateFile)
        {
            setting.Load();
            context.Put("ProjectName", setting.ProjectNameList);
        }

        public BaseAdapter(string templateFile)
            : this(null, null, templateFile)
        {
        }
    }
}
